/**
 * 
 */
package br.edu.catolica.sadbc.view;

import org.jboss.seam.ScopeType;
import org.jboss.seam.annotations.AutoCreate;
import org.jboss.seam.annotations.Factory;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Scope;

import br.edu.catolica.sadbc.entity.enums.Semestre;
import br.edu.catolica.sadbc.entity.enums.Sexo;
import br.edu.catolica.sadbc.entity.enums.SituacaoUsuario;
import br.edu.catolica.sadbc.entity.enums.TipoSaida;
import br.edu.catolica.sadbc.entity.enums.TipoUsuario;

/**
 * @author robert.resende
 *
 */
@AutoCreate
@Scope (ScopeType.APPLICATION)
@Name("enumValuesFactory")
public class EnumValuesFactory {
	
	@Factory(value = "factoryTipoUsuario",scope = ScopeType.APPLICATION)
	public TipoUsuario[] getTipoUsuario() {
		return TipoUsuario.values();
	}
	
	@Factory(value = "factorySexo",scope = ScopeType.APPLICATION)
	public Sexo[] getSexo() {
		return Sexo.values();
	}
	
	@Factory(value = "factoryTipoSaida",scope = ScopeType.APPLICATION)
	public TipoSaida[] getTipoSaida() {
		return TipoSaida.values();
	}
	
	@Factory(value = "factorySemestre",scope = ScopeType.APPLICATION)
	public Semestre[] getSemestre() {
		return Semestre.values();
	}
	
	@Factory(value = "factorySituacaoUsuario",scope = ScopeType.APPLICATION)
	public SituacaoUsuario[] getSituacaoUsuario() {
		return SituacaoUsuario.values();
	}
	
	@Factory(value = "factorySituacaoAvaliador",scope = ScopeType.APPLICATION)
	public SituacaoUsuario[] getSituacaoAvaliador() {
		SituacaoUsuario[] enumSituacaoAvaliador = new SituacaoUsuario[2];
		enumSituacaoAvaliador[0] = SituacaoUsuario.ATIVO;
		enumSituacaoAvaliador[1] = SituacaoUsuario.INATIVO;
		return SituacaoUsuario.values();
	}

}
